package com.order.hit.crossover.platform.common.utils;

import java.util.HashMap;

public class PFResponse extends HashMap<String, Object>
{

    //  code：200 OK, 403 forbidden, 404 not found, 500 internal error
    public PFResponse code (int code) {
        this.put("code", code);
        return this;
    }

    public PFResponse message(String message) {
        this.put("message", message);
        return this;
    }

    public PFResponse data(Object data) {
        this.put("data", data);
        return this;
    }

    @Override
    public PFResponse put(String key, Object value) {
        super.put(key, value);
        return this;
    }
}
